package com.cc.springboot_test.bean.common;

import java.util.Map;

public class BusinessException extends RuntimeException {
    private static final long serialVersionUID = 5758669202670389293L;

    private String code = null;

    private String msg = null;

    private Map<String, String> data = null;

    public BusinessException(String msg) {
        super(msg);
        this.msg = msg;
    }

    public BusinessException(String code, String msg) {
        super(msg);
        this.code = code;
        this.msg = msg;
    }

    public BusinessException(String code, String msg, Map<String, String> data) {
        super(msg);
        this.code = code;
        this.msg = msg;
        this.data = data;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public Map<String, String> getData() {
        return data;
    }

    public void setData(Map<String, String> data) {
        this.data = data;
    }
}
